<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>蓝色的留言本</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/tpl/blue/css.css"/>
</head>

<body id="wholeDocument">
<div id="container">
<div id="header"><h1 class="header">我的蓝色留言本</h1><img src="/tpl/blue/clouds.jpg" height="140" width="240" /></div>
<div id="introduction">
	<div id="one">
	<h2>请填写您的留言：</h2>
		<form action="<{spUrl c=main a=write}>" method=POST>
		<p>您的名字：<input type=text name='name' size=40></p>
		<p>留言标题：<input type=text name='title' size=40></p>
		<p>留言内容：</p>
		<p><textarea name=contents cols=60 rows=6></textarea></p>
		<p><input type=submit value=" 提交 "></p>
		</form>
	</div>
</div>

  <div id="mainBody">
<{foreach from=$results item=one}>
      <h4><{$one.title}></h4>
      <p><{$one.name}>：<br /><{$one.contents}></p>
<{/foreach}>
  </div>
  <div id="footer">
<select name="选择模板" onchange="location.href=this.options[this.selectedIndex].value;"><option> 模板选择...</option>
  <option value="/?tpl=green">绿色风格</option><option value="/?tpl=blue">蓝色风格</option><option value="/?tpl=green2">绿色风格2</option><option value="/?tpl=white">白色风格</option></select>
  </div>
</div>

</body>
</html>